import Vue from 'vue'
import Router from 'vue-router'
import welcome from '@/views/welcome'
import userList from '@/views/userList'
import roleList from '@/views/roleList'
import permissionList from '@/views/permissionList'
import login from '@/views/login'
import register from '@/views/register'



Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'welcome',
      component: welcome
    },
    { // 定义用户信息组件的路径
      path: '/userlist',
      name: 'userList',
      component: userList
    },
    { // 定义角色信息组件的路径
      path: '/rolelist',
      name: 'roleList',
      component: roleList
    },
    { // 定义角色信息组件的路径
      path: '/permissionlist',
      name: 'permissionList',
      component: permissionList
    },
    { // 定义登录组件的路径
      path: '/login',
      name: 'login',
      component: login
    },
    { // 定义注册组件的路径
      path: '/register',
      name: 'register',
      component: register
    }

  ]
})
